/*
 * @Autor: zwf
 * @Date: 2022-09-05 21:28:51
 * @Version: 1.0
 * @Description: 全局加载封装
 **/
import { ElLoading } from 'element-plus'

const ekloading = {
    load: null,
    open(){
        this.load = ElLoading.service({
            lock: true,
            text: '数据提交中',
            background: 'rgba(0, 0, 0, 0.3)'
        })
    },
    close(){
        this.load.close()
    }
}
export default ekloading

